﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using AdaptiveHelpDesk;

namespace Novice.Services
{
    /// <summary>
    /// simply returns the value element 'n' from the WorkingData.xml file. can be expanded to work with task model too
    /// </summary>
    [WebService(Namespace = "http://soaiui.nmmu.ac.za/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    // [System.Web.Script.Services.ScriptService]
    public class reliants : System.Web.Services.WebService
    {
        /// <summary>
        /// Returns the value of element n
        /// </summary>
        /// <param name="n">is the name of the element who's value we want</param>
        /// <returns>returns the value of element n</returns>
        [WebMethod]
        public String reliant(String element)
        {
            GetTaskModel gt = new GetTaskModel();
            String value = gt.getElementValue(element);
            return value;
        }
    }
}
